<%-- 1조 : 두 수 x, y를 입력 받아 x~y까지 구구단을 출력하시오. --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <title>구구단 출력 결과</title>
     <link rel="stylesheet" type="text/css" href="./css/main.css"/>
</head>
<body>
     <div class="title">두수 x, y 사이의 구구단 출력 결과</div>
          <fieldset>
               <legend>결과</legend>
                    <%
                         int x = Integer.parseInt(request.getParameter("x"));
                         int y = Integer.parseInt(request.getParameter("y"));
                         String str = "";
                         int dan;
                         int i;
                              
                              
                         for (dan = x; dan <= y; dan++) {
                              for (i = 1; i <= 9; i++) {
                                   str = dan + " x " + i + " = " + (dan * i) + "&nbsp;&nbsp;";
                                   out.print(str);
                              }
                              out.print("<br/>");
                         }
                    %>
          </fieldset>

</body>
</html>